﻿using Abp.AspNetCore.Mvc.Controllers;
using Batman.Jianbei.Forum.Domains;
using Microsoft.AspNetCore.Mvc;

namespace Batman.Jianbei.Forum.Controllers.Users
{
    public class RoleController : AbpController
    {
        public Role role { get; set; }

        /// <summary>
        /// 获取全部角色
        /// </summary>
        /// <returns></returns>
        public IActionResult Get()
        {
            var roles = role.GetRoles();
            return Json(roles);
        }
    }
}
